package band.wukong.practice.springboot.spring4.fortest;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

/**
 * @author wukong(wukonggg@139.com)
 */
@Configuration
public class ProfileBeanConfig {

    @Bean
    @Profile("dev")
    public BeanWithProfile devTestBean() {
        return new BeanWithProfile("From development profile.");
    }

    @Bean
    @Profile("prod")
    public BeanWithProfile prodTestBean() {
        return new BeanWithProfile("From production profile.");
    }

}
